package com.stedu.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.stedu.bean.SysUser;
import com.stedu.service.SysUserService;
import com.stedu.mapper.SysUserMapper;
import org.springframework.stereotype.Service;

/**
* @author 24095
* @description 针对表【sys_user】的数据库操作Service实现
* @createDate 2024-11-11 13:41:37
*/
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser>
    implements SysUserService{
    //根据用户名查询
    public SysUser getByUsername(String username){
        QueryWrapper<SysUser> queryWrapper = new QueryWrapper<SysUser>().eq("username", username);
        return this.getOne(queryWrapper);
    }

}




